package cn.tgq.event_listener.b_registerevent;

import cn.tgq.event_listener.b_registerevent.service.RegisterService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class RegisterEventApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tgq.event_listener.b_registerevent");
        RegisterService registerService = context.getBean(RegisterService.class);
        registerService.register("张大三");
    }
}
